package com.example.login.domain.enums;

public enum EStatusEnum {
    FROZEN(0, "禁止使用"),
    NORMAL(1, "已激活");
    private Integer code;
    private String message;

    EStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
    public static EStatusEnum of(int value) {
        if (value == 0) {
            return FROZEN;
        }
            return NORMAL;
    }

}
